package com.ywd.materials.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("materials_warehouse")
public class MaterialsWarehouseEntity implements Serializable {
    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 父级仓库ID
     */
    @Schema(description = "父级仓库ID")
    private Long pid;
    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    private Long tenantId;
    /**
     * 仓库名称
     */
    @Schema(description = "仓库名称")
    private String name;
    /**
     * 所属省市区域
     */
    @Schema(description = "所属省市区域")
    private String area;
    /**
     * 仓库所属等级(0=市本级, 1=区县级, 2=乡镇级, 3=村点级)
     */
    @Schema(description = "仓库所属等级(0=市本级, 1=区县级, 2=乡镇级, 3=村点级)")
    private String gradeValue;
    /**
     * 级别备注
     */
    @Schema(description = "级别备注")
    private String gradeText;

    /**
     * 版本号
     */
    @Schema(description = "版本号")
    private Integer version;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 地址
     */
    @Schema(description = "地址")
    private String addr;

    /**
     * 仓库二维码URL
     */
    @Schema(description = "仓库二维码URL")
    private String qrCode;

    /**
     * 状态(0=停用,1=正常)
     */
    @Schema(description = "状态(0=停用,1=正常)")
    private Integer status;

    /**
     * 创建者
     */
    @Schema(description = "创建者")
    private Long creator;

    /**
     * 更新者
     */
    @Schema(description = "更新者")
    private Long updater;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;

    /**
     * 更新时间1
     */
    @Schema(description = "更新时间1")
    private String updateTime1;

    /**
     * 更新时间2
     */
    @Schema(description = "更新时间2")
    private String updateTime2;

    /**
     * 删除标识(0=正常,1=已删除)
     */
    @TableLogic
    @Schema(description = "删除标识(0=正常,1=已删除)")
    private Integer deleted;
}
